<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .root{
            width: 600px;
            height: 600px;
            display: grid;

            grid-template-rows: 194px 193px 193px;
            grid-template-columns: 194px 193px 193px;

            row-gap: 20px;
            column-gap: 20px;

            /* grid-template-areas就像是地图一样，这个案例中分为了9个盒子，那么你就要一行一行的规定好每个盒子属于哪个'国家'。 */
            grid-template-areas: 'a b b' 
                                              'c b b' 
                                              'd e f';
        }
        .item:nth-child(2){
            /* 让第二个item变为b国家，那么他就占了四个盒子 */
            grid-area: b;
        }
        
        .item{
            border: 1px solid gray;
            display: flex;
            justify-content: center;
            align-items: center;
        }
    </style>
</head>
<body>
    <div class="root">
        <div class="item">1</div>
        <div class="item">2</div>
        <div class="item">3</div>
        <div class="item">4</div>
        <div class="item">5</div>
        <div class="item">6</div>
    </div>
</body>
</html>